package com.example.book_recommend.entity;

import java.math.BigDecimal;
import java.util.Date;

public class Cart {
    private Integer cartId;

    private Integer uid;

    private Long bookId;

    private BigDecimal unitPrice;

    private Integer count;

    private Date createTime;

    private Date updateTime;

    private Float totalMoney;

    public Cart(Integer cartId, Integer uid, Long bookId, BigDecimal unitPrice, Integer count, Date createTime, Date updateTime, Float totalMoney) {
        this.cartId = cartId;
        this.uid = uid;
        this.bookId = bookId;
        this.unitPrice = unitPrice;
        this.count = count;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.totalMoney = totalMoney;
    }

    public Cart() {
        super();
    }

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Float getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Float totalMoney) {
        this.totalMoney = totalMoney;
    }
}